package uspeedd.metamodel;

import java.util.ArrayList;
import java.util.List;

import uspeedd.metamodel.enumeration.TypeDeclarationUspeed;

public class Declaration  {
	private TypeDeclarationUspeed typeD;
	private String nom;
	private List<String> phrase;

	public Declaration() {
		super();
		this.typeD = null;
		this.nom = "";
		this.phrase = null;
	}
	public Declaration(TypeDeclarationUspeed type, String nom,
			List<String> phrase) {
		super();
		this.typeD = type;
		this.nom = nom;
		this.phrase = phrase;
	}
	
	public TypeDeclarationUspeed getType() {return typeD;}
	public void setType(TypeDeclarationUspeed type) {this.typeD = type;}
	public String getNom() {return nom;}
	public void setNom(String nom) {this.nom = nom;}
	public List<String> getPhrase() {return phrase;}
	public void setPhrase(List<String> phrase) {this.phrase = phrase;}
	public void add(String phrase)
	{
		if(this.phrase == null) this.phrase = new ArrayList<String>();
		this.phrase.add(phrase);
	}
}
